//
//  Cat+extend.m
//  testApp
//
//  Created by iMac on 2018/2/28.
//  Copyright © 2018年 iMac. All rights reserved.
//

#import "Cat+extend.h"
#import <objc/runtime.h>
#import <objc/message.h>



@implementation Cat (extend)

- (void)setName:(NSString *)name {
    objc_setAssociatedObject(self, "name", name, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (NSString *)name {
    return objc_getAssociatedObject(self, "name");
}

@end
